package com.kx.center.service;

import java.security.GeneralSecurityException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.kx.center.entity.StoreAppAccount;
import com.kx.center.exception.AccountAlreadyExistsException;

/**
 * @description 门段端账户服务接口
 * @version 1.0
 * @author Scott 
 * @date 2015年12月17日 上午11:52:26
 */
public interface StoreAppAccountService {

	public void createAccount(StoreAppAccount account) throws AccountAlreadyExistsException, GeneralSecurityException;


	public HashMap<String, Object> findUserByUserIdAndPassword(String userId, String password) throws GeneralSecurityException;

	public void sendJpush(Integer id, String channel);

	public List<StoreAppAccount> findStoreAppAccountList(int pageNum,int count,Map<String,Object> whereMap);

	StoreAppAccount findAccountByToken(String token);
	
	List<StoreAppAccount> findAccountByStoreInfoId(Integer storeInfoId);


	public void activateAccount(String userId);


	public void updateAccount(StoreAppAccount account);


	public void deleteAccount(int id);


	public List<HashMap<String, Object>> findStoreByCompany(int companyId);


	public boolean checkOldPassword(String userId, String oldPassword);


	public void changePasswordByUserId(String userId, String newPassword);


	public List<StoreAppAccount> findAccountListByPage(int int1, int int2);


	public int findPageCount();
}
